package cn.bgs.dao;

import cn.bgs.pojo.Dormitory;
import cn.bgs.pojo.VoAll.DormitoryVo;
import cn.bgs.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface DormMapper {



    //查询 dorm
    List<Student> findAllDorm(DormitoryVo vo);

    //查询 area
    List<Dormitory> findArea();

    //查询 buildingNo
    List<Dormitory> findBuildingNo(String buildingNo);

    //查询 buildingFloor
    List<Dormitory> findBuildingFloor(@Param("noo") String noo, @Param("fll") String fll);

    //删除 dorm
    Integer delDorm(int pkId);

    //添加 dorm
    Integer addDorm(Dormitory dd);

    //修改 dorm
    Integer updateDorm(Dormitory dd);

    //查询学生
    Dormitory selectByPrimaryKey(Integer pkId);
}
